const express = require('express');
const cors = require('cors');
const app = express();

app.use(cors()); // 允许所有来源

// 或者，指定允许的来源
// app.use(cors({ origin: 'http://127.0.0.1:5500' }));

console.log("程序执行结束!");

app.get('/', (req, res) => {
    res.send('Hello World!');
});

app.listen(8888, () => {
    console.log('Server is running on http://127.0.0.1:8888');
});
